﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="PopupAddNewItemPermission.ascx.cs" Inherits="Hutech.CRM.Web.Controls.ManageRoleAndModule.PopupAddNewItemPermission" %>
<script type="text/javascript" language="javascript">
    var message = '<%= lblMessageError.ClientID %>';
    var fields = [{
        id: '<%= TextBoxActionName.ClientID %>',
        display: 'Tên',
        rules: ['required']
    }, {
        id: '<%= TextBoxDescription.ClientID %>',
        display: 'Mô tả',
        rules: ['required']
    }, {
        id: '<%= TextBoxActionCommand.ClientID %>',
        display: 'Action',
        rules: ['required']
    }];
</script>


<asp:Button ID="ButtonDelagate1" runat="server" Style="display: none;" />
<ajaxToolkit:ModalPopupExtender ID="ModalPopupAddNewItemPermission" CancelControlID="btnCloseModal"
        TargetControlID="ButtonDelagate1" PopupControlID="pnlAddNewItemPermission" PopupDragHandleControlID="pnlEditTTHeader"
        runat="server" BackgroundCssClass="modalBackground" X="200" Y="200">
</ajaxToolkit:ModalPopupExtender>
<asp:Panel ID="pnlAddNewItemPermission" runat="server" CssClass="modalPanel" Width="600">
    <asp:Panel ID="pnlEditTTHeader" runat="server" CssClass="modalPanelHeader">
        <asp:Label ID="lblHead" runat="server"></asp:Label>
    </asp:Panel>
    <asp:UpdatePanel ID="upnlAddNewItemPermission" runat="server" UpdateMode="Conditional" ChildrenAsTriggers="false">
        <ContentTemplate>
            <asp:Panel ID="pnlContent" runat="server" CssClass="modalPanelContent">
                <div class="ContenPopup">
                    <asp:HiddenField ID="_RoleID" runat="server" />
                    <div class="error"><asp:Label id="lblMessageError" runat="server" ></asp:Label></div>
                    <%--<div class="line"></div>--%>
                    <div class="NoColor">
                        <div class="tableuser">
                            
                            Nhóm Quyền: <asp:DropDownList ID="DropDownListKindAction" runat="server"></asp:DropDownList><br />
                            Tên: <asp:TextBox ID="TextBoxActionName" runat="server"></asp:TextBox><br />
                            Mô tả: <asp:TextBox ID="TextBoxDescription" runat="server"></asp:TextBox><br />
                            Action: <asp:TextBox ID="TextBoxActionCommand" runat="server"></asp:TextBox>
                        </div>
                    </div>
                </div>
            </asp:Panel>
        </ContentTemplate>
        <Triggers></Triggers>
    </asp:UpdatePanel>
    <asp:Panel ID="pnlEditTTFooter" runat="server" CssClass="modalPanelFooter">
        <div class="ContenPopupCommand">
            <%-- <mC:tsButton ID="btnSaveModal" runat="server" Text="Lưu" />--%>
            <mC:tsButton ID="ButtonSave" runat="server" Text="Lưu" OnClientClick="return Validation(fields,message)" />
            <mC:tsButton ID="btnCloseModal" runat="server" Text="Đóng" />
        </div>
    </asp:Panel>
</asp:Panel>